const puppeteer = require('puppeteer');

(async () => {
  const browser = await puppeteer.launch({
    slowMo: 100,    //放慢速度
    headless: false,
    // defaultViewport: {width: 800, height: 600},
    ignoreHTTPSErrors: false, //忽略 https 报错
    args: ['--start-fullscreen'] //全屏打开页面
  });
  const page = await browser.newPage();
  await page.goto('https://gitee.com/login');
  // await page.screenshot({path: 'gitee.png'});

  // await browser.close();
})();
